In Oracle SQL replace variable number of placeholders with values from a second table